    <?php Yii::app()->getClientScript()->registerCoreScript('jquery'); ?>
	<li class="itemlist left" style="border-bottom:dashed 1px gray;padding-top:5px;padding-bottom:5px; width:100%;" onmouseover="$(this).find('.quick').fadeIn(1000);" onmouseout="$(this).find('.quick').fadeOut(1000);">
<!-- 
		<input type="checkbox" name="category"  value="<?php echo $data['cate_id'];?>" />&nbsp;&nbsp;<?php if($data['deep']>1){echo "";}?><?php for($i=1;$i<$data['deep'];$i++):?>－<?php endfor;?> <span class="quick-cate-name"><?php echo $data['cate_name'];?>(<?php echo Category::model()->getCategoryType($data['cate_type'])?>)</span>
		&nbsp;&nbsp;<span class="quick hide"><a href="#" class="quickshow">快速编辑</a> <?php if($data['cate_pid'] != 0):?> | <a href="<?php echo $this->createUrl('update',array('id'=>$data['cate_id']));?>">编辑</a> | <a href="<?php echo $this->createUrl('deleteremote',array('id'=>$data['cate_id']));?>">删除</a><?php endif;?></span>
 -->
        <div style="width: 100%;">
            <span class="left quick-cate">
                <?php for($i=0;$i<Category::model()->getCateDeep($data['cate_id'],$data['cate_type'])-2;$i++): ?>
                    &nbsp;&nbsp;&nbsp;&nbsp;
                <?php endfor;?>
            
                <input type="checkbox" name="category"  value="<?php echo $data['cate_id'];?>" />
                &nbsp;&nbsp;
                <?php if($data['deep']>1){echo "";}?>
                    <?php for($i=1;$i<$data['deep'];$i++):?>－<?php endfor;?> 
                    <span class="quick-cate-name">
                        <?php echo $data['cate_name'];?>
                    </span>
                &nbsp;&nbsp;        
            </span>
    
            <span class="quick hide">
                <span id="<?php echo $this->createUrl('category/update',array('id'=>$data['cate_id']));?>"  cid="<?php echo $data['cate_id'];?>" class="ui-icon ui-icon-pencil left" onclick="actionUpdate($(this));" title="编辑"></span>
                <span class="ui-icon ui-icon-zoomin left" onclick="quickShow($(this));" title="快速编辑"></span>
                <span id="<?php echo $this->createUrl('cateogry/deleteremote',array('id'=>$data['cate_id']));?>" class="ui-icon ui-icon-trash left" onclick="deleteItem($(this));" title="删除"></span>
            </span>        
        </div>

		
		<div class="row hide showitem clear" >
			<table>
                <tr>
                    <td>
                        <div class="row">
                            <label class="require">分类名：</label>
                            <input type="text" name="item"   id="cate_name_<?php echo $data['cate_id'];?>" value="<?php echo $data['cate_name'];?>" />
                        </div>
                    </td>
                    <td>
                        <label for="cate_contype_<?php echo $data['cate_id']; ?>">分类内容：</label>
			            <?php echo CHtml::dropDownList('cate_contype_'.$data['cate_id'], $data['cate_contype'], Category::model()->generateContentTypeDropdownListArray());?>
			
                    </td>
                    <td>
                        <label>&nbsp;</label>
                        <button class="itemsubmit" id="<?php echo $data['cate_id']; ?>" onclick="quickModifyItem($(this));">OK</button>
                    </td>
                </tr>
            </table>
			            
		</div>
	</li>